from django.db import models
from danwei.models import Danwei

# Create your models here.


class RoIssue(models.Model):
    name = models.CharField(max_length=255)  # 假设议题名称是字符类型
    publicity = models.CharField(max_length=50)  # 假设公开程度是字符类型
    reporter = models.CharField(max_length=255)  # 汇报人
    preset_time = models.DateTimeField()  # 假设申报时间是日期时间类型
    state = models.CharField(max_length=50)  # 假设审核情况是字符类型
    proposal = models.CharField(max_length=2048, blank=True, null=True)  # 复合建议
    file = models.FileField(upload_to="download/issue_file", blank=True, null=True)

    class Meta:
        db_table = "roissue"
        managed = False  # 确保Django不会尝试管理这个表的创建、迁移或删除
